//
//  MSMusicSearchTool.h
//  HelloMusic
//
//  Created by mac on 15/3/19.
//  Copyright (c) 2015年 gpr. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MSMusicSearchResponse,MSMusicInfoRequest,MSMusic;

@interface MSMusicTool : NSObject

/** 根据关键字搜索歌曲信息,如果关键字为空则不回调 */
+ (void)searchWithKeyWord:(NSString *)keyWord complete:(void(^)(MSMusicSearchResponse *response, NSError *error))complete;

@end

@interface MSMusicTool(MusinInfo)

/** 根据请求信息来请求歌曲信息,  musicInfos  class = MSMusicInfo*/
+ (void)requestMusinInfoWithRequest:(MSMusicInfoRequest *)request complete:(void(^)(NSArray *musicInfos, NSError *error))complete;

@end

@interface MSMusicTool(Song)

/** 根据歌曲 id 请求该歌曲的详细信息 */
+ (void)requestMusicWithSongId:(NSString *)song_id complete:(void(^)(MSMusic *music, NSError *error))complete;

@end